﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace GradesArray
{
    class Program
    {
        static void Main(string[] args)
        {
            int counter = 0;
            int[] gradesArray = new int[20];
            //number of students as I see it
            Random rndm = new Random();
          
            for (int i = 0; i <= gradesArray.Length-1; i++)
            {
                int studentCount = rndm.Next(1, 101);
                gradesArray[i] = studentCount;
            }

            foreach (var item in gradesArray)
            {
                counter++;
                Console.Write(counter + ": ");
                if (item < 60)
                    Console.WriteLine("E");
                if (item >= 60 && item <= 69)
                    Console.WriteLine("D");
                if (item >= 70 && item <= 79)
                    Console.WriteLine("C");
                if (item >= 80 && item <= 89)
                    Console.WriteLine("B");
                if (item >= 90 && item <= 100)
                    Console.WriteLine("A");
            }
        }
    }
}
